<template>
<div class="wrapper">
  <div class="swiper-pagination2"  slot="pagination"></div>
  <div class="title">热榜</div>

  <swiper :options="swiperOption">

    <swiper-slide class="slide">
      <div>
        <div class="item">
          <div class="item-h"></div>
          <div class="item-name">昵称
            <p class="date">{{detail.creatTime}}</p>
          </div>
          <img src="../../../assets/image/attention.png" alt="">
        </div>
        <ul class="slide-list">
          <li class="border-bottom">
            <p class="li-title"  @click="sendDtail">销售/客服/市场</p>
            <img class="li-img" src="../../../assets/image/right_hot.png">
          </li>
        </ul>
      </div>
      <div>
        <div class="item">
          <div class="item-h"></div>
          <div class="item-name">昵称
            <p class="date">{{detail.creatTime}}</p>
          </div>
          <img src="../../../assets/image/attention.png" alt="">
        </div>
        <ul class="slide-list">
          <li class="border-bottom">
            <p class="li-title"  @click="sendDtail">销售/客服/市场</p>
            <img class="li-img" src="../../../assets/image/right_hot.png">
          </li>
        </ul>
      </div>
      <div>
        <div class="item">
          <div class="item-h"></div>
          <div class="item-name">昵称
            <p class="date">{{detail.creatTime}}</p>
          </div>
          <img src="../../../assets/image/attention.png" alt="">
        </div>
        <ul class="slide-list">
          <li class="border-bottom">
            <p class="li-title"  @click="sendDtail">销售/客服/市场</p>
            <img class="li-img" src="../../../assets/image/right_hot.png">
          </li>
          <li class="border-bottom">
            <p class="li-title"  @click="sendDtail">销售/客服/市场</p>
            <img class="li-img" src="../../../assets/image/right_hot.png">
          </li>
        </ul>
      </div>

    </swiper-slide>
    <swiper-slide class="slide">
      <div>
        <div class="item">
          <div class="item-h"></div>
          <div class="item-name">昵称
            <p class="date">{{detail.creatTime}}</p>
          </div>
          <img src="../../../assets/image/attention.png" alt="">
        </div>
        <ul class="slide-list">
          <li class="border-bottom">
            <p class="li-title"  @click="sendDtail">销售/客服/市场</p>
            <img class="li-img" src="../../../assets/image/right_hot.png">
          </li>
        </ul>
      </div>
      <div>
        <div class="item">
          <div class="item-h"></div>
          <div class="item-name">昵称
            <p class="date">{{detail.creatTime}}</p>
          </div>
          <img src="../../../assets/image/attention.png" alt="">
        </div>
        <ul class="slide-list">
          <li class="border-bottom">
            <p class="li-title"  @click="sendDtail">销售/客服/市场</p>
            <img class="li-img" src="../../../assets/image/right_hot.png">
          </li>
        </ul>
      </div>
      <div>
        <div class="item">
          <div class="item-h"></div>
          <div class="item-name">昵称
            <p class="date">{{detail.creatTime}}</p>
          </div>
          <img src="../../../assets/image/attention.png" alt="">
        </div>
        <ul class="slide-list">
          <li class="border-bottom">
            <p class="li-title"  @click="sendDtail">销售/客服/市场</p>
            <img class="li-img" src="../../../assets/image/right_hot.png">
          </li>
          <li class="border-bottom">
            <p class="li-title"  @click="sendDtail">销售/客服/市场</p>
            <img class="li-img" src="../../../assets/image/right_hot.png">
          </li>
        </ul>
      </div>

    </swiper-slide>
    <swiper-slide class="slide">
      <div>
        <div class="item">
          <div class="item-h"></div>
          <div class="item-name">昵称
            <p class="date">{{detail.creatTime}}</p>
          </div>
          <img src="../../../assets/image/attention.png" alt="">
        </div>
        <ul class="slide-list">
          <li class="border-bottom">
            <p class="li-title"  @click="sendDtail">销售/客服/市场</p>
            <img class="li-img" src="../../../assets/image/right_hot.png">
          </li>
        </ul>
      </div>
      <div>
        <div class="item">
          <div class="item-h"></div>
          <div class="item-name">昵称
            <p class="date">{{detail.creatTime}}</p>
          </div>
          <img src="../../../assets/image/attention.png" alt="">
        </div>
        <ul class="slide-list">
          <li class="border-bottom">
            <p class="li-title"  @click="sendDtail">销售/客服/市场</p>
            <img class="li-img" src="../../../assets/image/right_hot.png">
          </li>
        </ul>
      </div>
      <div>
        <div class="item">
          <div class="item-h"></div>
          <div class="item-name">昵称
            <p class="date">{{detail.creatTime}}</p>
          </div>
          <img src="../../../assets/image/attention.png" alt="">
        </div>
        <ul class="slide-list">
          <li class="border-bottom">
            <p class="li-title"  @click="sendDtail">销售/客服/市场</p>
            <img class="li-img" src="../../../assets/image/right_hot.png">
          </li>
          <li class="border-bottom">
            <p class="li-title"  @click="sendDtail">销售/客服/市场</p>
            <img class="li-img" src="../../../assets/image/right_hot.png">
          </li>
        </ul>
      </div>
    </swiper-slide>
  </swiper>
</div>
</template>
<script>
import Services from '@/service/service'
export default {
  name: "SwiperPoP",
  props: {},
  data() {
    return {
      swiperOption: {
        pagination: ".swiper-pagination2",
        loop: true,
        detail:{
          creatTime:''
        }
      }
    };
  },
 created:function(){
    let data={
      param:{
        detail:{
          creatTime:this.detail.creatTime
        }
      }
    };
    Services.myAjax({
     data:data,
     method: "post",
     url: Services.baseUrl + "/SwiperHot"
   });
  },
  computed: {}
};
</script>
<style lang="stylus" scoped>
@import '~styles/variables';

.wrapper >>> .swiper-pagination2 {
  margin-left: 2.8rem;
  margin-top: -0.12rem;

}

.wrapper >>> .swiper-pagination-bullet {
  background-color: #fff !important;
  border-radius: 0;
  width: 0.1rem;
  height: 0.1rem;
  margin-left:8px;
  opacity:1;
}

.wrapper >>> .swiper-pagination-bullet-active {
  background-color: $logoColor !important;
}

.wrapper {
  background-color: $mainBgc;
  min-width: 1rem;
  margin-top: 0.25rem;
  padding: 0.15rem 0.2rem;

  .title {
    border-left: 0.04rem solid $logoColor;
    font-size: 0.23rem;
    padding-left: 0.07rem;
    margin-bottom: 0.1rem;
  }

  .slide {
    min-height: 4rem;
    background-color: #fff;

    .item {
      display: flex;
      flex-direction: row;
      white-space: nowrap;
      margin-bottom: 1px;
      justify-content: space-around;
      align-content: center;
      align-items: center;
      background: #fff;
      padding: 0.15rem 0;

      .item-h {
        width: 0.5rem;
        height: 0.5rem;
        background: red;
        border-radius: 100%;
      }

      .item-name {
        font-size: 0.2rem;
        margin-left: -0.4rem;

        .date {
          font-size: 0.07rem;
          color: #aaa;
          margin-top: 0.05rem;
        }
      }
    }

    .slide-list {
      padding: 0.15rem;

      .li-title {
        font-size: 0.18rem;
        margin: 0.12rem 0 0.15rem 0;

      }
      .li-title:hover{
        color:#d42525;
        cursor:pointer;
      }
      .li-img {
        width: 100%;
        margin-bottom: 0.28rem;
      }
    }
  }
}
</style>
